﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UpdateBusCarControl.ascx.cs" Inherits="Control_UpdateBusCarControl" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table>
            <tr>
                <td><asp:Label ID="Label3" runat="server" Text="BusNo: "></asp:Label></td>
                <td><asp:TextBox ID="txtBusNo" runat="server" Width="177px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtBusNo" ErrorMessage="RequiredFieldValidator">Please Fill Data</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtBusNo" ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="^[a-zA-Z0-9\s]{1,}$">BusNo do not  enter character special</asp:RegularExpressionValidator>
                </td>
            </tr>
             <tr>
                <td><asp:Label ID="Label10" runat="server" Text="SeatsUsed: "></asp:Label></td>
                <td><asp:TextBox ID="txtSeatsUsed" runat="server" Width="177px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtSeatsUsed" ErrorMessage="RequiredFieldValidator">Please Fill Data</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtSeatsUsed" ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="^[a-zA-Z0-9,\s]{1,}$">SeatUsed do not  enter character special</asp:RegularExpressionValidator>
                 </td>
            </tr>
            <tr>
                <td><asp:Label ID = "BusTypeLable" runat="server" Text="BusType: "></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListBusType" runat="server" Width="179px">
              
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td><asp:Label ID="LocationLabel" runat="server" Text="Start Location:"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListstartLocatioon" runat="server" Width="179px" 
                        onselectedindexchanged="DropDownListstartLocatioon_SelectedIndexChanged">
          
                    </asp:DropDownList>
                    <asp:Timer ID="Timer1" runat="server" Interval="3000">
                    </asp:Timer>
                </td>
            </tr>
                <tr>
                <td><asp:Label ID="Label1" runat="server" Text="End Location:"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="179px">
          
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td><asp:Button ID="btnAdd" runat="server"
                Text="Edit" onclick="btnAdd_Click"   /></td>
                <td><asp:Button ID="btnreset" runat="server" 
                Text="Reset" onclick="btnreset_Click"   /></td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1"/>
    </Triggers>
</asp:UpdatePanel>
